change all values in array after max value